<template>
  <div class="as-radio-group">
    <slot></slot>
  </div>
</template>

<script type='text/ecmascript-6'>
export default {
  name: "AsRadioGroup",
  componentName: "AsRadioGroup",
  provide() {
    return {
      AsRadioGroup: this
    };
  },
  props: {
    value: {},
    size: String
  },
  data() {
    return {};
  },
  created() {
    this.$on("handlerChange", value => {
      this.$emit("input", value);
      this.$emit("change", value);
    });
  },
  computed: {
    model() {
      return this.value;
    }
  }
};
</script>
